package com.ruoyi.petrol.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.petrol.mapper.ChePetrolOilMapper;
import com.ruoyi.petrol.domain.ChePetrolOil;
import com.ruoyi.petrol.service.IChePetrolOilService;

/**
 * 加油站油类型中间表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-12
 */
@Service
public class ChePetrolOilServiceImpl implements IChePetrolOilService 
{
    @Autowired
    private ChePetrolOilMapper chePetrolOilMapper;

    /**
     * 查询加油站油类型中间表
     * 
     * @param id 加油站油类型中间表主键
     * @return 加油站油类型中间表
     */
    @Override
    public ChePetrolOil selectChePetrolOilById(Long id)
    {
        return chePetrolOilMapper.selectChePetrolOilById(id);
    }

    /**
     * 查询加油站油类型中间表列表
     * 
     * @param chePetrolOil 加油站油类型中间表
     * @return 加油站油类型中间表
     */
    @Override
    public List<ChePetrolOil> selectChePetrolOilList(ChePetrolOil chePetrolOil)
    {
        return chePetrolOilMapper.selectChePetrolOilList(chePetrolOil);
    }

    /**
     * 新增加油站油类型中间表
     * 
     * @param chePetrolOil 加油站油类型中间表
     * @return 结果
     */
    @Override
    public int insertChePetrolOil(ChePetrolOil chePetrolOil)
    {
        return chePetrolOilMapper.insertChePetrolOil(chePetrolOil);
    }

    /**
     * 修改加油站油类型中间表
     * 
     * @param chePetrolOil 加油站油类型中间表
     * @return 结果
     */
    @Override
    public int updateChePetrolOil(ChePetrolOil chePetrolOil)
    {
        return chePetrolOilMapper.updateChePetrolOil(chePetrolOil);
    }

    /**
     * 批量删除加油站油类型中间表
     * 
     * @param ids 需要删除的加油站油类型中间表主键
     * @return 结果
     */
    @Override
    public int deleteChePetrolOilByIds(Long[] ids)
    {
        return chePetrolOilMapper.deleteChePetrolOilByIds(ids);
    }

    /**
     * 删除加油站油类型中间表信息
     * 
     * @param id 加油站油类型中间表主键
     * @return 结果
     */
    @Override
    public int deleteChePetrolOilById(Long id)
    {
        return chePetrolOilMapper.deleteChePetrolOilById(id);
    }
}
